package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author WEN
 * @since 2023-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjUser对象", description="用户表")
public class ZjUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "登录账号")
    private String account;

    @ApiModelProperty(value = "加密盐值")
    private String salt;

    @ApiModelProperty(value = "登录密码")
    private String password;

    @ApiModelProperty(value = "用户编码")
    private String code;

    @ApiModelProperty(value = "用户姓名")
    private String name;

    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    @ApiModelProperty(value = "账号状态：0-正常，1-冻结，2-禁用")
    private Integer status;

    @ApiModelProperty(value = "最后登录时间")
    private Date lastLoginTime;

    @ApiModelProperty(value = "用户头像路径")
    private String avatar;

    @ApiModelProperty(value = "余额")
    private BigDecimal money;

    @ApiModelProperty(value = "用户等级表ID")
    private Long levelId;

    @ApiModelProperty(value = "客户等级")
    private String level;

    @ApiModelProperty(value = "用户分类ID")
    private Long userTypeId;

    @ApiModelProperty(value = "用户分类名称")
    private String userType;

    @ApiModelProperty(value = "是否根据权限查看知识库：0-查看所有，1-根据权限查看")
    @TableField("is_select_knowledge_author")
    private Boolean selectKnowledgeAuthor;

    @ApiModelProperty(value = "创建人员ID")
    private Long createEmpId;

    @ApiModelProperty(value = "更新人员ID")
    private Long updateEmpId;

    @ApiModelProperty(value = "创建/注册时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
